<?php if ($this->grab) :?>
<?= $this->partial('data-grabber/menu.phtml'); ?>

<script type="text/javascript">

function doTransfer()
{
    var answer = confirm("Really transfer to database?");
    
    if (answer) {
        $('#transferForm').submit();
    }
}

</script>

<div class="content-full">

    <h1><?= $this->img("/images/icons/INV_Bijou_Gold.jpg") ?> Transfer grab: <?= $this->grab->name ?></h1>
    
    <?php if ($this->message) :?>
    <p>
        <strong><?= $this->message ?></strong>
    </p>
    <?php endif;?>
    
    <form id="transferForm" method="post" action="">
    
        <input type="hidden" name="grab" value="<?= $this->grab->id ?>"/>
        
        <div class="button_large" onclick="doTransfer()">Transfer</div>
        
    </form>
    
</div>
<?php else: ?>
<p>Unknown grab.</p>
<?php endif;?>